Xbasic
Logical .XOR.
Syntax
Result as L = Expression1 .XOR. Expression2
Arguments
- Expression1
A value or an Xbasic expression that evaluates to a value.
- Expression2
A value or an Xbasic expression that evaluates to a value.
Description
When a logical XOR (.XOR.) is placed between two logical expressions, the result is TRUE if only one of the expressions on either side of the .XOR. is TRUE. This is a bitwise logical operation. The truth table below shows all the possible outcomes of an .XOR. operation. See also Language Reference
How .XOR Arguments Work
If Expression1 is FALSE .XOR. Expression2 is FALSE then the result is FALSE
If Expression1 is FALSE .XOR. Expression2 is TRUE then the result is TRUE
If Expression1 is TRUE .XOR. Expression2 is FALSE then the result is TRUE
If Expression1 is TRUE .XOR. Expression2 is TRUE then the result is FALSE
See Also